<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    {% block css %}{% endblock %}

</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">图书管理系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>


        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">

                    {{ request.obj }}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{% url 'logout' %}">登出</a></dd>
                </dl>
            </li>
            {#      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>#}
            {#        <a href="javascript:;">#}
            {#          <i class="layui-icon layui-icon-more-vertical"></i>#}
            {#        </a>#}
            {#      </li>#}
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
           {% block left %}{% endblock %}
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->

        <div style="padding: 15px;">{% block body %}{% endblock %}</div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        {% block footer %}{% endblock %}
        底部固定区域
    </div>
</div>
<script src="/static/layui/layui.js"></script>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
{% block js %}{% endblock %}

</body>
</html>
